#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：python_learning 
@File ：monitor.py
@IDE  ：PyCharm 
@Author ：李涵彬
@Date ：2025/2/14 上午9:47 
"""

import time
import random


def generate_value(value_queue):
	while True:
		value = random.randint(1, 5)  # 模拟生成动态值
		value_queue.put(value)
		print(f"Generated new value: {value}")
		time.sleep(3)
